package com.work.reports;

import java.util.*;

import org.junit.Test;

import com.work.reports.types.*;

public class PdfGeneratorTest {
	
	private static final String TEST_FOLDER_PATH = "C:\\Users\\Radek\\Desktop\\Raport\\";

	@Test
	public void testTakenOvertimeReportGenerator() {

		try {
			PdfReport reportGenerator = new TakenOvertimeReportGenerator("Raport_odebranych_nadgodzin_" + new Date().getTime(), TEST_FOLDER_PATH, new Locale("pl"));
			reportGenerator.generatePdf();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
	
	@Test
	public void testTakenLeavesReportGenerator() {

		try {
			PdfReport reportGenerator = new TakenLeaveReportGenerator("Raport_odebranych_urlopow_" + new Date().getTime(), TEST_FOLDER_PATH, new Locale("pl"));
			reportGenerator.generatePdf();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}
